﻿@model List<DataEntity.OffPurchaseBillDetail>

@{
    ViewBag.Title = "PrintPurchaseBill";
}
<link href="~/Content/PrintFormStyle.css" rel="stylesheet" />
<div id="bodyScroll">

    <div id="form" style="text-align: center;">
        <div> <span style="font-size:24px;letter-spacing:8px">浙江胜辉服饰有限公司</span></div>
        <div><span class="underline" style="font-size:20px;letter-spacing:8px;float:left;margin-left:630px">入库单</span><span style="margin-right:300px"><input type="checkbox" checked="@ViewBag.PurchaseBill.IsBillStorage" disabled="disabled" />发票入库</span></div>
        <br />

        <div><span style="float:left;margin-left:630px"><span class="underline">@(ViewBag.PurchaseBill.StorageTime.Year)</span>年&nbsp;<span class="underline">@(ViewBag.PurchaseBill.StorageTime.Month)</span> 月 &nbsp;<span class="underline">@(ViewBag.PurchaseBill.StorageTime.Day)</span>日</span><span style="margin-right:300px">  编号<span  class="underline"><span style="color:red;font-size:20px">@ViewBag.PurchaseBill.Code</span> </span></span></div>
    <div class="div_center">
        <table  align="center" style="border-collapse: collapse;width:600px;height:250px" border="1" cellspacing="0" cellpadding="0">
            <tr>

                <td>收货单位
                </td>
                <td>@ViewBag.PurchaseBill.DeliveryCompany</td>
                <td>货源性质
                </td>
                <td colspan="2">@ViewBag.PurchaseBill.SourceProperties</td>
                <td>订单号</td>
                <td>@ViewBag.PurchaseBill.OrderNumber</td>
               
            </tr>
            <tr>
                <td colspan="2">货物品名
                </td>
                <td >单位</td>
                <td>数量
                </td>
                <td>税后单价</td>
                <td>金额</td>
                <td>备注</td>
            </tr>
            @foreach(var purchaseBillDetail in Model)
            {
            <tr>
                <td colspan="2">@purchaseBillDetail.OffGoods.Name
                </td>
                <td>@purchaseBillDetail.OffGoods.Unit</td>
                <td>@purchaseBillDetail.Quantity
                </td>
                <td>@purchaseBillDetail.AfterTaxPrice</td>
                <td>@(purchaseBillDetail.AfterTaxPrice*purchaseBillDetail.Quantity)</td>
                <td>@purchaseBillDetail.Remark</td>
            </tr>
            }
           @for (int i = 0; i < ViewBag.Count; i++)
           { 
              <tr>
                <td colspan="2">
                </td>
                <td></td>
                <td>
                </td>
                <td></td>
                <td></td>
                <td></td>
            </tr>
           }

        </table>
        </div>

    <div >
        <span style="float:left;margin-left:400px">送货单位:<span style="width:200px"></span></span>
       
      

          <span style="width:200px">收货:</span>
       
         <span style="float:right;margin-right:500px">记账:</span>
        
               
        </div>
    </div>
</div>
